package com.studyweb.mapper;

import com.studyweb.pojo.entity.WritingMaterialAccumulation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface WritingMaterialAccumulationMapper {
    
    List<WritingMaterialAccumulation> list();
    
    WritingMaterialAccumulation getById(Long id);
    
    void insert(WritingMaterialAccumulation writingMaterialAccumulation);
    
    void update(WritingMaterialAccumulation writingMaterialAccumulation);
    
    void deleteById(Long id);
    
    void batchDeleteByIds(@Param("ids") List<Long> ids);
    
    List<WritingMaterialAccumulation> listByKeyword(@Param("keyword") String keyword);
}